/* interface TStu {
  name: string;
  sex: string;
  score: number;
  height: number | string;
  study?: (subject: string) => void;
  play?(game: string): void
}


const stu1: TStu = {
  name: 'zs',
  sex: '男',
  score: 80,
  height: '180cm',
  study(subject) {
    console.log(subject)
  },
  play(game = '守望先锋') {
    console.log(game)
  }
} */

interface IPosition1 {
  x: number;
  y: number
}

// 接口可以通过 extends 继承
interface IPosition2 extends IPosition1 {
  z: number
}

const o1: IPosition1 = {
  x: 1,
  y: 3,
}
const o2: IPosition2 = {
  x: 1,
  y: 3,
  z: 9,
}



export {}